/**
 * Property & Copyright 2009 Nokia Siemens Networks.
 */
package beans.grid.common;

public class GridColumn {
	public static final String ALIGN_RIGHT = "right";
	public static final String ALIGN_CENTER = "center";
	
	private String name;
	private String index;//index name in the json object
	private int width;
	private boolean sortable;
	private String align = ALIGN_CENTER;
	
	public GridColumn(){}
	
	public GridColumn(String name,String index,int width,boolean sortable){
		this.name = name;
		this.index = index;
		this.width = width;
		this.sortable = sortable;
	}
	
	public GridColumn(String name, String index, int width) {
		this(name,index,width,true);
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getIndex() {
		return index;
	}
	public void setIndex(String index) {
		this.index = index;
	}
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public boolean isSortable() {
		return sortable;
	}
	public void setSortable(boolean sortable) {
		this.sortable = sortable;
	}
	public String getAlign() {
		return align;
	}
	public void setAlign(String align) {
		this.align = align;
	}

}
